package main

import (
	"LinkWareHouse/errhandle"
	"LinkWareHouse/sqlite"
	"LinkWareHouse/start"
)

func main() {
	const siteStoragePath = "./data.db"
	s, err := sqlite.New(siteStoragePath)
	errhandle.CheckError("can't connect to storage", err)

	err = s.Init()
	errhandle.CheckError("can't init storage", err)

	start.Start(s)
}
